#include "route.h"

Route::Route()
{

}

Route::Route(QVector<routePoint> data)
{
    this->data = data;
}

void Route::pushPoint(int time, int x, int y)
{
    data.push_back(routePoint(time,x,y));
}

void Route::pushPoint(int time, int key)
{
    data.push_back(routePoint(time,key));
}

void Route::show()
{
    QVector<routePoint>::iterator iter;
    for(iter = data.begin(); iter!=data.end();iter++){
        iter->show();
    }
}

void Route::deleteData()
{
    data.clear();
}


